<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-for-对象</title>

</head>
<body>
<div id="app">

  <div v-for="(inner,innerKey) in employee1">
      {{inner}}-{{innerKey}}
  </div>

</div>


</body>
<script src="../../lib/vue.global.js"></script>

<script>

    var app = Vue.createApp({


        data: function () {
            return {
                employee1: {
                    id: 1,
                    name: 'L',
                    gender: 'male',
                    age: 25
                }
            }
        }
    });

    app.mount('#app');

</script>

</html>